export function formatNumber(number: any) {
  let result = "";
  let counter = 0;
  number = (number || 0).toString();
  for (let i = number.length - 1; i >= 0; i--) {
    counter++;
    result = number.charAt(i) + result;
    if (!(counter % 3) && i != 0) {
      result = "," + result;
    }
  }
  return result;
}
